/**
 * @author lk
 * @date 2022/6/1 8:22
 */
package com.mytaobao.pojo.enums;

public class Gender {
    private final String genderName;
    private final String genderDesc;

    private Gender(String genderName, String genderDesc) {
        this.genderDesc = genderDesc;
        this.genderName = genderName;
    }

    public static final Gender MALE = new Gender("男", "力量");

    @Override
    public String toString() {
        return "Gender{" +
                "genderName='" + genderName + '\'' +
                ", genderDesc='" + genderDesc + '\'' +
                '}';
    }

    public String getGenderName() {
        return genderName;
    }

    public String getGenderDesc() {
        return genderDesc;
    }

    public static final Gender FEMALE = new Gender("女", "美丽");
}

class Tesssss {
    public static void main(String[] args) {
        Gender female = Gender.FEMALE;
        System.out.println(female);
    }
}